<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/mySwiper.css">
    <script src="../js/mySwiper.js"></script>
    <style>
        .mySwiper1 {
            width: 600px;
            margin-top: 50px;
        }

        .mySwiper2 {
            width: 800px;
            margin-top: 50px;
        }

        .mySwiper3 {
            width: 1000px;
            margin-top: 50px;
        }
    </style>
</head>

<body>
    <div class="wrap mySwiper1">
        <i class="prev iconfont icon-left"></i>
        <i class="next iconfont icon-right"></i>
        <!-- 是否需要导航 -->
        <ul class="nav">
        </ul>
        <div class="swiper clear">
            <div class="swiper-item"><img src="../images/1.webp" alt=""></div>
            <div class="swiper-item"><img src="../images/2.webp" alt=""></div>
        </div>
    </div>
    <div class="wrap mySwiper2">
        <i class="prev iconfont icon-left"></i>
        <i class="next iconfont icon-right"></i>
        <!-- 是否需要导航 -->
        <ul class="nav">

        </ul>
        <div class="swiper clear">
            <div class="swiper-item"><img src="../images/1.webp" alt=""></div>
            <div class="swiper-item"><img src="../images/2.webp" alt=""></div>
            <div class="swiper-item"><img src="../images/3.jpg" alt=""></div>
        </div>
    </div>
    <div class="wrap mySwiper3">
        <i class="prev iconfont icon-left"></i>
        <i class="next iconfont icon-right"></i>
        <!-- 是否需要导航 -->
        <ul class="nav">

        </ul>
        <div class="swiper clear">
            <div class="swiper-item"><img src="../images/1.webp" alt=""></div>
            <div class="swiper-item"><img src="../images/2.webp" alt=""></div>
            <div class="swiper-item"><img src="../images/3.jpg" alt=""></div>
            <div class="swiper-item"><img src="../images/4.webp" alt=""></div>

        </div>
    </div>
</body>
<script>
    // 面向对象  
    // 思想上的提升 ->   就是将你的需求抽象成一个对象,然后针对这个对象分析其特征(属性)与行为(方法)


    // 轮播 = {
    //     点击轮播,
    //     自动轮播,
    //     移入暂停,移出启动,
    //     左右点击切换
    // }

    // 字面量对象 -> 将面向过程中的变量和函数改为对象中的属性和方法

    new Swiper(".mySwiper1");
    new Swiper(".mySwiper2");
    new Swiper(".mySwiper3");







</script>

</html>